from django.conf.urls.defaults import patterns, include, url

# Uncomment the next two lines to enable the admin:

#import settings
from django.contrib import admin
admin.autodiscover()

from blog.models import Post
from compare.views import CompareView, CompareDetView

#return 0

urlpatterns = patterns('',
    url(r'^$', include('blog.urls')),
    
    #url(r'^static/(?P<path>.*)$', 'django.views.static.serve', 
    #    {'document_root': settings.STATIC_ROOT}
    #),                 
    #url(r'^hello/', include('hello.urls')),
    
    (r'^blog/tag/(?P<tag>[^/]+)/$', 'tagging.views.tagged_object_list',
        dict(queryset_or_model=Post)
    ),
    url(r'^blog/', include('blog.urls')),
    
    url(r'^user/', include('user.urls')),
    
    url(r'^okno/', include('okno.urls')),
    
    url(r'^queue/', include('queue.urls')),
    url(r'^movement/', include('movement.urls')),

    url(r'^compare/(?P<offset>\d+)/$', CompareView.as_view()),
    url(r'^comparedet/(?P<offset>\d+)/$', CompareDetView.as_view()),

    #url(r'^vyplata/', include('vyplata.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)
